package com.ashin.mq.config;

import com.ashin.common.RabbitMQConfig;
import org.springframework.amqp.core.DirectExchange;
import org.springframework.amqp.core.FanoutExchange;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FanoutRabbitConfig {


    @Bean
    public FanoutExchange rabbitmqDemoFanoutExchange() {
        //Direct交换机
        return new FanoutExchange(RabbitMQConfig.EXCHANGE_FANOUT_TEST, true, false);
    }


}
